﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：AccountNowDepositInfo
// 文件功能描述：帐户现存款业务逻辑层
//
// 
// 创建标识：2012-06-12 王冲
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO.WaiGaoQiao;
using System.Data;
using DAO.WaiGaoQiao;

namespace Model.WaiGaoQiao
{
    public class AccountNowDepositInfo
    {
        public string year
        {
            get;
            set;
        }

        public string month
        {
            get;
            set;
        }

        public int irp
        {
            get;
            set;
        }

        public int ipage
        {
            get;
            set;
        }
        private DataAccessAccountNowDeposit dar;

        /// <summary>
        /// 获取已帐户现存款
        /// </summary>
        /// <returns></returns>
        public DataSet GetList(int pagesize, int startindex, string depname, string datetime)
        {
            dar = new DataAccessAccountNowDeposit();
            return dar.GetList(pagesize, startindex, depname, datetime);
        }

        /// <summary>
        /// 获取已帐户现存款
        /// </summary>
        /// <returns></returns>
        public DataSet GetListAll(string depname, string datetime)
        {
            dar = new DataAccessAccountNowDeposit();
            return dar.GetListAll(depname, datetime);
        }

        /// <summary>
        /// 获取已帐户现存款条数
        /// </summary>
        /// <param name="strDateTime"></param>
        /// <returns></returns>
        public int GetCount(string depname, string datetime)
        {
            dar = new DataAccessAccountNowDeposit();
            return dar.GetCount(depname, datetime);
        }

        /// <summary>
        /// 获取已帐户现存款合计
        /// </summary>
        /// <param name="strDateTime"></param>
        /// <returns></returns>
        public decimal GetAllMoney(string depname, string datetime)
        {
            dar = new DataAccessAccountNowDeposit();
            return dar.GetAllMoney(depname, datetime);
        }

        /// <summary>
        /// 获取部门列表（用于绑定下拉框）
        /// </summary>
        /// <returns></returns>
        public DataSet GetdeptName()
        {
            dar = new DataAccessAccountNowDeposit();
            return dar.GetdeptName();
        }
    }
}
